package jy.dao.impl;

import jy.dao.DataDaoI;
import jy.model.Tdata;

import org.springframework.stereotype.Repository;

@Repository
public class DataDaoImpl extends BaseDaoImpl<Tdata> implements DataDaoI {
	
	public  float getData(String dataName) {
		Tdata tdata = this.get("from Tdata where dataname ='" + dataName+"'");
		return tdata.getDatavalue();
	}
}
